package com.example.sps.commons;

import lombok.Data;
import lombok.Getter;

/**
 * @ProjectName: Sps
 * @Titile: ServiceException
 * @Author: nency
 * @Description: 业务异常类
 */

public class ServiceException extends RuntimeException{
    @Getter
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

}
